﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CrmManageSystemClient.Formn
{
    public partial class FmMain : Form
    {
        public FmMain()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            //调用登陆界面,验证成功后显示主窗口
            //Login login = new Login();   //创建并引用登录窗体
            //if (login.ShowDialog(this) == DialogResult.OK)   //当登窗体的对话框的返回值为OK时
            //{
            //    login.Dispose();
            //}
            //else
            //{
            //    login.Dispose();
            //    Close();
            //}
            button1.BackgroundImage = Resources.ResourceClient.ButtonNavigationDefault;
            button2.BackgroundImage = Resources.ResourceClient.ButtonNavigationDefault;
            button3.BackgroundImage = Resources.ResourceClient.ButtonNavigationDefault;
            button4.BackgroundImage = Resources.ResourceClient.ButtonNavigationDefault;
            button5.BackgroundImage = Resources.ResourceClient.ButtonNavigationDefault;
            button6.BackgroundImage = Resources.ResourceClient.ButtonNavigationDefault;
        }

        private void 版本信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FmAbout About = new FmAbout();
            About.ShowDialog();
        }

        private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SystemSet SystemSet = new SystemSet();
            SystemSet.ShowDialog();
        }

        private void 来电管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Telephone Telephone = new Telephone();
            Telephone.ShowDialog();
        }

        private void 快递系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Freight.FmFreight_Main _Freight = new Freight.FmFreight_Main();
            _Freight.ShowDialog();
        }
    }
}
